<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xm1ns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro"
      xmlns:xm1ns="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3>首页</h3>
    <p>
        <a th:href="@{/tologin}">登录</a>
    </p>
<h1 th:text="${msg}"></h1>
<hr/>
<div shiro:hasPermission="user:add">
    <a th:href="@{/user/addUser}">添加</a>
</div>

<div shiro:hasPermission="user:update">
    <a th:href="@{/user/updateUser}">删除</a>
</div>
</body>
</html>
